@import '~sassvar';

.page-ugc {
  padding: 132px 0 113px 0;
}

.ugc-hd {
  padding: 30px $gapHorizon 20px $gapHorizon;
  margin-bottom: 20px;
  background: #fff;
}

.ugc-meta {
  font-size: 22px;
  margin-bottom: 20px;
}

.ugc-meta-date {
  color: $text-normal-light;
  margin-right: 20px;
}

.ugc-meta-author {
  color: $text-primary;
}

.ugc-title {
  line-height: 42px;
  font-size: 30px;
  color: $text-dark;
  text-indent: 72px;
  position: relative;
  margin-bottom: 20px;
}

.ugc-content {
  line-height: 48px;
  margin-bottom: 20px;
  font-size: 28px;
  color: $text-dark;
}

.ugc-title-type {
  position: absolute;
  top: 2px;
  left: 0;
  width: 68px;
  line-height: 36px;
  font-size: 20px;
  color: #fff;
  text-align: center;
  text-indent: 0;
  background: #FF9F00;
  border-radius: 18px;
}

.ugc-tag {
  display: inline-block;
  line-height: 46px;
  padding: 0 20px;
  margin: 0 10px 10px 0;
  font-size: 24px;
  color: #66BAFF;
  background: #EEF8FF;
  border-radius: 23px;
}

.ugc-bd {
}

.answer {
  padding: 30px $gapHorizon;
  margin-bottom: 20px;
  background: #fff;
}

.answer-hd {
  font-size: 32px;
  font-weight: bolder;
  color: $text-dark;
  margin-bottom: 30px;
}

.answer-meta {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.answer-meta-avatar {
  position: relative;
  flex: 0 0 auto;
  margin-right: 16px;
  background: $background;

  &::before {
    position: absolute;
    top: 50px;
    left: 50px;
    content: '';
    width: 36px;
    height: 36px;
    background: url('~images/icon-vip.png') no-repeat;
    background-size: 100% 100%;
  }
  
  img {
    overflow: hidden;
    display: block;
    width: 86px;
    height: 86px;
    border-radius: 86px;
  }
}

.answer-meta-bd {
  flex: 1 1 auto;
}

.answer-meta-name {
  line-height: 42px;
  font-size: 30px;
  color: $text-dark;
  margin-bottom: 2px;
}

.answer-meta-date {
  line-height: 30px;
  font-size: 22px;
  color: $text-normal-light;
}

.answer-content {
  line-height: 40px;
  font-size: 28px;
  color: $text-dark;
}

.ugc-images {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -5px 10px -5px;

  img {
    width: 227px;
    height: 227px;
    margin: 0 5px 10px 5px;
  }
}

.ugc-large-images {
  position: relative;
  margin: -30px -1*$gapHorizon 20px -1*$gapHorizon;

  .swiper-slide {
    padding-top: 100%;
    position: relative;
  }

  img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
}

.ucg-large-images-counter {
  position: absolute;
  bottom: 26px;
  right: 30px;
  z-index: 10;
  min-width: 70px;
  padding: 0 15px;
  line-height: 36px;
  font-size: 22px;
  text-align: center;
  color: #fff;
  background: rgba(0,0,0,0.45);
  border-radius: 21px;
}

.ugc-video {
  position: relative;
  margin: -30px -1*$gapHorizon 20px -1*$gapHorizon;

  .video-js {
    width: 100%;
    height: 563px;
  }
}